package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface MovementApi {
    String saveMovement(Movement movement);

    List<Movement> findAll(Integer page, Integer pageSize, Long userId);

    List<Movement> friendsMovement(Integer page, Integer pageSize, Long userId);

    List<Movement> findByIds(String[] ids, Integer page, Integer pageSize);

    List<Movement> randomMovement(Integer pageSize);

    Movement findById(String id);

    void update(String movementId, int stats);

    PageResult findMovementList(Integer status, Integer page, Integer pageSize, Long uid);
}
